package com.ruoyi;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;

/**
 * 启动程序
 * 
 * @author greejoy
 */
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
public class RuoYiApplication
{
    public static void main(String[] args) throws Exception {
//        boolean license = LicenseUtils.checkLicense("../license");
//        if(!license){
//            System.out.println("启动失败，授权文件错误！");
//            System.out.println(LicenseUtils.getMacList().toString());
//            return;
//        }
        // System.setProperty("spring.devtools.restart.enabled", "false");
        SpringApplication.run(RuoYiApplication.class, args);
        System.out.println(
                " _____   _____    _____   _____       _   _____  __    __ \n" +
                        "/  ___| |  _  \\  | ____| | ____|     | | /  _  \\ \\ \\  / / \n" +
                        "| |     | |_| |  | |__   | |__       | | | | | |  \\ \\/ /  \n" +
                        "| |  _  |  _  /  |  __|  |  __|   _  | | | | | |   \\  /   \n" +
                        "| |_| | | | \\ \\  | |___  | |___  | |_| | | |_| |   / /    \n" +
                        "\\_____/ |_|  \\_\\ |_____| |_____| \\_____/ \\_____/  /_/     \n"
        );
    }
}